
#include "comFinl.h"
#ifndef chemistry_h
#define chemistry_h
class Chemistry:public comFinal{
	friend	ostream &operator<<( ostream &os,  Chemistry &s);
protected:
	int Chemistr;
	int Analy;
	int majTotal;
	float majAve;
public:
	Chemistry(char *n,int Eng,int Chi,int Mat,int Chem,int Anal);
	Chemistry(){};
	int getMajtotal()
	{
		return Analy+Chemistr;
	}
	float getMajave()
	{
		return float((Chemistr+Analy) /2 );
	}
	int getChe()
	{
		return Chemistr;
	}
	int getAnl()
	{
		return Analy;
	}
	void setChe(int x)
	{
		Chemistr=x;
	}
	void setAnl(int x)
	{
		Analy=x;
	}
	void show();

	friend	bool operator<(Chemistry &o1,Chemistry &o2);
};
#endif